import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { entities } from '../app/entities';

const ormConfig: TypeOrmModuleOptions = {
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'nest_crud',
  password: 'nest_crud',
  database: 'nest_crud',
  synchronize: false,
  logging: true,
  entities: entities,
};

export const environment = {
  production: false,
  ormConfig: ormConfig,
};
